package com.ruoyi.zsyh.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.zsyh.mapper.ZsyhServiceTypeMoneyotherMapper;
import com.ruoyi.zsyh.domain.ZsyhServiceTypeMoneyother;
import com.ruoyi.zsyh.service.IZsyhServiceTypeMoneyotherService;
import com.ruoyi.common.core.text.Convert;

/**
 * 其他费用标准Service业务层处理
 * 
 * @author yuexl
 * @date 2024-08-22
 */
@Service
public class ZsyhServiceTypeMoneyotherServiceImpl implements IZsyhServiceTypeMoneyotherService 
{
    @Autowired
    private ZsyhServiceTypeMoneyotherMapper zsyhServiceTypeMoneyotherMapper;

    /**
     * 查询其他费用标准
     * 
     * @param id 其他费用标准ID
     * @return 其他费用标准
     */
    @Override
    public ZsyhServiceTypeMoneyother selectZsyhServiceTypeMoneyotherById(String id)
    {
        return zsyhServiceTypeMoneyotherMapper.selectZsyhServiceTypeMoneyotherById(id);
    }

    /**
     * 查询其他费用标准列表
     * 
     * @param zsyhServiceTypeMoneyother 其他费用标准
     * @return 其他费用标准
     */
    @Override
    public List<ZsyhServiceTypeMoneyother> selectZsyhServiceTypeMoneyotherList(ZsyhServiceTypeMoneyother zsyhServiceTypeMoneyother)
    {
        return zsyhServiceTypeMoneyotherMapper.selectZsyhServiceTypeMoneyotherList(zsyhServiceTypeMoneyother);
    }

    /**
     * 新增其他费用标准
     * 
     * @param zsyhServiceTypeMoneyother 其他费用标准
     * @return 结果
     */
    @Override
    public int insertZsyhServiceTypeMoneyother(ZsyhServiceTypeMoneyother zsyhServiceTypeMoneyother)
    {
        zsyhServiceTypeMoneyother.setCreateTime(DateUtils.getNowDate());
        return zsyhServiceTypeMoneyotherMapper.insertZsyhServiceTypeMoneyother(zsyhServiceTypeMoneyother);
    }

    /**
     * 修改其他费用标准
     * 
     * @param zsyhServiceTypeMoneyother 其他费用标准
     * @return 结果
     */
    @Override
    public int updateZsyhServiceTypeMoneyother(ZsyhServiceTypeMoneyother zsyhServiceTypeMoneyother)
    {
        zsyhServiceTypeMoneyother.setUpdateTime(DateUtils.getNowDate());
        return zsyhServiceTypeMoneyotherMapper.updateZsyhServiceTypeMoneyother(zsyhServiceTypeMoneyother);
    }

    /**
     * 删除其他费用标准对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteZsyhServiceTypeMoneyotherByIds(String ids)
    {
        return zsyhServiceTypeMoneyotherMapper.deleteZsyhServiceTypeMoneyotherByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除其他费用标准信息
     * 
     * @param id 其他费用标准ID
     * @return 结果
     */
    @Override
    public int deleteZsyhServiceTypeMoneyotherById(String id)
    {
        return zsyhServiceTypeMoneyotherMapper.deleteZsyhServiceTypeMoneyotherById(id);
    }

    public int deleteZsyhServiceTypeMoneyotherByUserStoreId(String id)
    {
        return zsyhServiceTypeMoneyotherMapper.deleteZsyhServiceTypeMoneyotherByUserStoreId(id);
    }
}
